﻿@using Yyyg.Models
@model UserCollect[]
@{ 
    var datalen = ViewBag.UserCollectLen;
    Layout = null;
}
<ul class="sclist" data-datalen="@datalen">
    @for (int i = 0; i < Model.Length; i++)
    {
        var item = Model[i];
        var good = item.Goods;
        var rush = good.Rushby_now.First().Rushby_all;
        <li>
            <div class="imgbx" title="前往查看">
                <a href="/home/prizeabout?rhid=@rush.Id">
                    <img src="@good.GetMainImgPath()" />
                </a>
            </div>
            <div class="gdtitbx">
                <p><a class="goodlink" href="/home/prizeabout?rhid=@rush.Id"><b>(第@(rush.Per_num)期)</b>@good.Title</a></p>
            </div>
            <div class="pricbx">
                价值:<b>￥@good.Price.ToString("#0.00")</b>
            </div>
            <div class="btnbx">
                <a href="/home/prizeabout?rhid=@rush.Id" title="查看详情" class="btn-go layui-btn layui-btn-warm layui-btn-xs">前往查看>></a>
                <button data-gid="@good.Gid" title="取消收藏" class="btn-cstar layui-icon layui-icon-delete layui-btn layui-btn-danger layui-btn-xs"></button>
            </div>
            <div class="float-bar">
                <div title="剩余" value="@(100-rush.NowPercentage())" bar-width="5" class="circleProgbar"></div>
            </div>
        </li>
    }
</ul>